<div id="CMS_FRONTEND_IFRAME_CONTAINER">
	<iframe id="CMS_FRONTEND_IFRAME"  src="/"  height="100%" width="50%" border="0" style="z-index:0;" frameborder="0" scrolling="yes"></iframe>
</div>
<div id="ContentEditorNavi" style=""></div>
<div id="CMS_Frontend_Overlay"></div>

<div id="CCDS_IFRAME_RELOAD">
	<a href='javascript:void(0);' onclick="xajax.$('CMS_FRONTEND_IFRAME').contentWindow.location.reload();"><img src="img/all-tabs-refresh-page.gif" border="0" alt="" /></a>
</div>
<div id="CMS_logout">
	<div style="float:left;width:5px;"><img src="img/toptab-left.gif" border="0" /></div>
	<div style="float:left;text-align:left;">&nbsp;
		{foreach from=$home_navi item="item"}
			<a class="top" href="javascript:void(0);" onclick="{$item.onclick}">{$item.name}</a> | 
		{/foreach}
		<a class="top" href="javascript:void(0);" onclick="CMS.LogoutConfirm('ccdsFrontendEdit2');">Logout</a>&nbsp;&nbsp;
	</div>
	<div style="float:left;width:5px;"><img src="img/toptab-right.gif" border="0" /></div>
	<br style="clear:both;" />
</div>


<div style="height: 65px;background: url('{$CMS_WEB_DIR}img/head-bg.gif') repeat-x;position:absolute;top:0px;left:0px;width:100%;z-index:100;">
	<div style="width: 980px;">
		<div style="float:left; width: 300px;text-align: center;">
				<img src="{$CMS_WEB_DIR}img/ccds-logo.gif" alt="CCDS" border="0" /><br />
		</div>
		<div style="float:left; width: 680px;">
		</div>
	</div>
</div>

{if ($smarty.session.CMS.user_level >= 1000) OR ($smarty.session.CMS.user_flags.navi_left)}
	
	<div id="CMS_NaviTree_Box" >
		{literal}<!--[if IE]><div onmouseover="CMS.show_navi();" onmouseout="CMS.hide_navi();"><![endif]-->{/literal}
		<div id="CMS_NaviTree_InnerBox" style="">
			<div id="CMS_NaviTree" style="position:relative;">
				<div style="height:22px;background: url({$CMS_WEB_DIR}img/headbar-bg.gif) repeat-x;">
					<div style="float: left; margin-left: 4px; margin-right: 4px;margin-top:4px;"><img src="{$CMS_LIBRARY_WEB}famfamfam/icons/world.png" border="0" alt="" /></div>
					<div style="float: left; margin-right:2px; margin-top:6px;color:#fff">
			 			<a href="javascript:void(0);" class="top" onclick="{literal}xajax.request({ccdsfun:'initNavi',ccdsclass:'ccdsFrontendEdit2'},{parameters:[]});{/literal}">{$smarty.config.headbar_pagestructure_reload}</a>
					</div>
					<div id="CMS_sticky_navi" style="float:right;width:16px;height:16px;margin:4px;" onclick="CMS.sticky();"><img id="CMS_sticky_img" src="img/icon-pin-0.gif" border="0" alt="" /></div>
					<br style="clear: both;" />
				</div>
				<div id="navicontainer" style="">
					<div id="divprojects"></div>
					<br style="clear:both;" />
					<br /><br />
					{if ($smarty.session.CMS.user_level >= 1000) OR ($smarty.session.CMS.user_flags.general_filemanager)}
						<div style="border-bottom: 1px dotted #ccc; margin-bottom: 4px; margin-left: 15px;">
							<div style="float: left;text-align: center;">
								<a href="javascript:void(0);" style="margin-right: 8px;"><img src="{$CMS_LIBRARY_WEB}famfamfam/icons/folder.png" alt="" border="0" /></a>
							</div>
							<div style="float: left;">
								<a href="javascript:void(0);" onclick="{strip}{literal}CMS.FileManager.open({{/literal}root:'media',project_id:'{$project_id}',returnfield: {literal}{}});{/literal}{/strip}" class="tabnavi">{$smarty.config.NaviPanel_filemanager}</a>
							</div>
							<br style="clear:both;" />
						</div>	
	
					{/if}
								
					{if 0 < $admin_navi|@count}
					
						<div style="height:22px;background: url({$CMS_WEB_DIR}img/headbar-bg.gif) repeat-x;">
							<div style="float: left; margin-left: 2px; margin-right: 4px;margin-top:4px;"><img src="{$CMS_LIBRARY_WEB}famfamfam/icons/wrench.png" border="0" alt="" /></div>
							<div style="float: left; margin-right:2px; margin-top:6px;color:#fff">
								{$smarty.config.headbar_administration}
							</div>
							<br style="clear: both;" />
						</div>
						<br />
						<div id="navicontainer">
						
							{foreach from=$admin_navi item="navi"}
								<div style="border-bottom: 1px dotted #ccc; margin-bottom: 4px; margin-left: 15px;">
									<div style="float: left;text-align: center;">
										<a href="javascript:void(0);" style="margin-right: 8px;"><img src="{$navi.icon}" alt="" border="0" /></a>
									</div>
									<div style="float: left;">
										<a href="javascript:void(0);" onclick="{$navi.onclick}" class="tabnavi">{$navi.label}</a>
									</div>
									<br style="clear:both;" />
								</div>	
							{/foreach}
					
						</div>
					{/if}
				</div>
			</div>
		</div>
		<div id="CMS_NaviTree_tab" style=""  >
			<div style="position:relative;"><img src="img/frontend/bt-editor-tree.gif" alt="" border="0"  /></div>
		</div>
		<div style="clear:both;"></div>
		<!--[if IE]></div><![endif]-->
	</div>
{/if}
<div id="ContentArea" style="display:none;"></div>

<div id="CMS_layout_append">
{$templates_callback}
</div>
